package com.project.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.server.entity.PatientInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PatientInfoMapper extends BaseMapper<PatientInfo> {
    
    @Select("SELECT * FROM patient_info WHERE user_id = #{userId}")
    PatientInfo selectByUserId(Long userId);
} 